﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;

namespace 多协议通信平台.ViewModels.Component
{
    public partial class MenuItemViewModel : ObservableObject
    {
        [ObservableProperty]
        private int id;

        [ObservableProperty]
        private bool isExpand;

        [ObservableProperty]
        private string menuName;

        [ObservableProperty]
        private string urlName;

        [ObservableProperty]
        private string menuIcon;

        [ObservableProperty]
        private int parentId;

        [ObservableProperty]
        private ObservableCollection<MenuItemViewModel> children;

        public RelayCommand<MenuItemViewModel> OpenViewCommand { get; set; }
    }
}
